package com.mhys.hms.service.user;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.mhys.hms.entity.User;

/**
 * 账号用户接口
 * @author 
 *
 */
@Service
public interface UserService {
	/**
	 * 添加新用户
	 * @param user
	 * @return
	 */
	public Integer addUser(User user);
	
	/**
	 * 根据账号名查找账户信息
	 * @param countName
	 * @return
	 */
	public List<User> queryUserByCount(String countName);
	/**
	 * 分页模糊查询
	 * @param startNum
	 * @param pageSize
	 * @param userNo
	 * @param userName
	 * @return
	 */
	public List<User> getUserInfo(int startNum,int pageSize,
			String userNo,String userName);
	/**
	 * 模糊查询总条数
	 * @param userNo
	 * @param userName
	 * @return
	 */
	public int getUserCount(String userNo,String userName);
	/**
	 * 根据id逻辑删除用户
	 * @param id
	 * @return
	 */
	public int delUserById(String id);
}
